import axios from 'axios'

const service = axios.create({
    baseURL: process.env.VUE_APP_CURTAIN_CONTROL,
    timeout: 3000,
})

export function curtainChange(status) {
    return service({
        url: 'Change',
        method: 'post',
        data: status
    })
}

export function curtainSpeed(speed) {
    return service({
        url: 'Speed',
        method: 'post',
        data: speed
    })
}
